package com.github.shiqiyue.app.modules.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.shiqiyue.app.modules.sys.entity.UserPermission;

import java.util.List;

/**
 * <p>
 * 用户-权限 Mapper 接口
 * </p>
 *
 * @author wenyao.wu
 * @since 2018-10-17
 */
public interface UserPermissionMapper extends BaseMapper<UserPermission> {

    /***
     * 通过[userId]获取
     * @param userId
     * @return
     */
    List<UserPermission> findByUserId(Long userId);

}
